package com.kkb.pojo;

import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.List;

public class BehospitalExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public BehospitalExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andIdIsNull() {
            addCriterion("id is null");
            return (Criteria) this;
        }

        public Criteria andIdIsNotNull() {
            addCriterion("id is not null");
            return (Criteria) this;
        }

        public Criteria andIdEqualTo(Integer value) {
            addCriterion("id =", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotEqualTo(Integer value) {
            addCriterion("id <>", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThan(Integer value) {
            addCriterion("id >", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("id >=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThan(Integer value) {
            addCriterion("id <", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThanOrEqualTo(Integer value) {
            addCriterion("id <=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdIn(List<Integer> values) {
            addCriterion("id in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotIn(List<Integer> values) {
            addCriterion("id not in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdBetween(Integer value1, Integer value2) {
            addCriterion("id between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotBetween(Integer value1, Integer value2) {
            addCriterion("id not between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andNursePeopleIsNull() {
            addCriterion("nursePeople is null");
            return (Criteria) this;
        }

        public Criteria andNursePeopleIsNotNull() {
            addCriterion("nursePeople is not null");
            return (Criteria) this;
        }

        public Criteria andNursePeopleEqualTo(String value) {
            addCriterion("nursePeople =", value, "nursePeople");
            return (Criteria) this;
        }

        public Criteria andNursePeopleNotEqualTo(String value) {
            addCriterion("nursePeople <>", value, "nursePeople");
            return (Criteria) this;
        }

        public Criteria andNursePeopleGreaterThan(String value) {
            addCriterion("nursePeople >", value, "nursePeople");
            return (Criteria) this;
        }

        public Criteria andNursePeopleGreaterThanOrEqualTo(String value) {
            addCriterion("nursePeople >=", value, "nursePeople");
            return (Criteria) this;
        }

        public Criteria andNursePeopleLessThan(String value) {
            addCriterion("nursePeople <", value, "nursePeople");
            return (Criteria) this;
        }

        public Criteria andNursePeopleLessThanOrEqualTo(String value) {
            addCriterion("nursePeople <=", value, "nursePeople");
            return (Criteria) this;
        }

        public Criteria andNursePeopleLike(String value) {
            addCriterion("nursePeople like", value, "nursePeople");
            return (Criteria) this;
        }

        public Criteria andNursePeopleNotLike(String value) {
            addCriterion("nursePeople not like", value, "nursePeople");
            return (Criteria) this;
        }

        public Criteria andNursePeopleIn(List<String> values) {
            addCriterion("nursePeople in", values, "nursePeople");
            return (Criteria) this;
        }

        public Criteria andNursePeopleNotIn(List<String> values) {
            addCriterion("nursePeople not in", values, "nursePeople");
            return (Criteria) this;
        }

        public Criteria andNursePeopleBetween(String value1, String value2) {
            addCriterion("nursePeople between", value1, value2, "nursePeople");
            return (Criteria) this;
        }

        public Criteria andNursePeopleNotBetween(String value1, String value2) {
            addCriterion("nursePeople not between", value1, value2, "nursePeople");
            return (Criteria) this;
        }

        public Criteria andPatBedIsNull() {
            addCriterion("patBed is null");
            return (Criteria) this;
        }

        public Criteria andPatBedIsNotNull() {
            addCriterion("patBed is not null");
            return (Criteria) this;
        }

        public Criteria andPatBedEqualTo(String value) {
            addCriterion("patBed =", value, "patBed");
            return (Criteria) this;
        }

        public Criteria andPatBedNotEqualTo(String value) {
            addCriterion("patBed <>", value, "patBed");
            return (Criteria) this;
        }

        public Criteria andPatBedGreaterThan(String value) {
            addCriterion("patBed >", value, "patBed");
            return (Criteria) this;
        }

        public Criteria andPatBedGreaterThanOrEqualTo(String value) {
            addCriterion("patBed >=", value, "patBed");
            return (Criteria) this;
        }

        public Criteria andPatBedLessThan(String value) {
            addCriterion("patBed <", value, "patBed");
            return (Criteria) this;
        }

        public Criteria andPatBedLessThanOrEqualTo(String value) {
            addCriterion("patBed <=", value, "patBed");
            return (Criteria) this;
        }

        public Criteria andPatBedLike(String value) {
            addCriterion("patBed like", value, "patBed");
            return (Criteria) this;
        }

        public Criteria andPatBedNotLike(String value) {
            addCriterion("patBed not like", value, "patBed");
            return (Criteria) this;
        }

        public Criteria andPatBedIn(List<String> values) {
            addCriterion("patBed in", values, "patBed");
            return (Criteria) this;
        }

        public Criteria andPatBedNotIn(List<String> values) {
            addCriterion("patBed not in", values, "patBed");
            return (Criteria) this;
        }

        public Criteria andPatBedBetween(String value1, String value2) {
            addCriterion("patBed between", value1, value2, "patBed");
            return (Criteria) this;
        }

        public Criteria andPatBedNotBetween(String value1, String value2) {
            addCriterion("patBed not between", value1, value2, "patBed");
            return (Criteria) this;
        }

        public Criteria andAntecedentIsNull() {
            addCriterion("antecedent is null");
            return (Criteria) this;
        }

        public Criteria andAntecedentIsNotNull() {
            addCriterion("antecedent is not null");
            return (Criteria) this;
        }

        public Criteria andAntecedentEqualTo(BigDecimal value) {
            addCriterion("antecedent =", value, "antecedent");
            return (Criteria) this;
        }

        public Criteria andAntecedentNotEqualTo(BigDecimal value) {
            addCriterion("antecedent <>", value, "antecedent");
            return (Criteria) this;
        }

        public Criteria andAntecedentGreaterThan(BigDecimal value) {
            addCriterion("antecedent >", value, "antecedent");
            return (Criteria) this;
        }

        public Criteria andAntecedentGreaterThanOrEqualTo(BigDecimal value) {
            addCriterion("antecedent >=", value, "antecedent");
            return (Criteria) this;
        }

        public Criteria andAntecedentLessThan(BigDecimal value) {
            addCriterion("antecedent <", value, "antecedent");
            return (Criteria) this;
        }

        public Criteria andAntecedentLessThanOrEqualTo(BigDecimal value) {
            addCriterion("antecedent <=", value, "antecedent");
            return (Criteria) this;
        }

        public Criteria andAntecedentIn(List<BigDecimal> values) {
            addCriterion("antecedent in", values, "antecedent");
            return (Criteria) this;
        }

        public Criteria andAntecedentNotIn(List<BigDecimal> values) {
            addCriterion("antecedent not in", values, "antecedent");
            return (Criteria) this;
        }

        public Criteria andAntecedentBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("antecedent between", value1, value2, "antecedent");
            return (Criteria) this;
        }

        public Criteria andAntecedentNotBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("antecedent not between", value1, value2, "antecedent");
            return (Criteria) this;
        }

        public Criteria andIllnessIsNull() {
            addCriterion("illness is null");
            return (Criteria) this;
        }

        public Criteria andIllnessIsNotNull() {
            addCriterion("illness is not null");
            return (Criteria) this;
        }

        public Criteria andIllnessEqualTo(String value) {
            addCriterion("illness =", value, "illness");
            return (Criteria) this;
        }

        public Criteria andIllnessNotEqualTo(String value) {
            addCriterion("illness <>", value, "illness");
            return (Criteria) this;
        }

        public Criteria andIllnessGreaterThan(String value) {
            addCriterion("illness >", value, "illness");
            return (Criteria) this;
        }

        public Criteria andIllnessGreaterThanOrEqualTo(String value) {
            addCriterion("illness >=", value, "illness");
            return (Criteria) this;
        }

        public Criteria andIllnessLessThan(String value) {
            addCriterion("illness <", value, "illness");
            return (Criteria) this;
        }

        public Criteria andIllnessLessThanOrEqualTo(String value) {
            addCriterion("illness <=", value, "illness");
            return (Criteria) this;
        }

        public Criteria andIllnessLike(String value) {
            addCriterion("illness like", value, "illness");
            return (Criteria) this;
        }

        public Criteria andIllnessNotLike(String value) {
            addCriterion("illness not like", value, "illness");
            return (Criteria) this;
        }

        public Criteria andIllnessIn(List<String> values) {
            addCriterion("illness in", values, "illness");
            return (Criteria) this;
        }

        public Criteria andIllnessNotIn(List<String> values) {
            addCriterion("illness not in", values, "illness");
            return (Criteria) this;
        }

        public Criteria andIllnessBetween(String value1, String value2) {
            addCriterion("illness between", value1, value2, "illness");
            return (Criteria) this;
        }

        public Criteria andIllnessNotBetween(String value1, String value2) {
            addCriterion("illness not between", value1, value2, "illness");
            return (Criteria) this;
        }

        public Criteria andClosePriceIsNull() {
            addCriterion("closePrice is null");
            return (Criteria) this;
        }

        public Criteria andClosePriceIsNotNull() {
            addCriterion("closePrice is not null");
            return (Criteria) this;
        }

        public Criteria andClosePriceEqualTo(Integer value) {
            addCriterion("closePrice =", value, "closePrice");
            return (Criteria) this;
        }

        public Criteria andClosePriceNotEqualTo(Integer value) {
            addCriterion("closePrice <>", value, "closePrice");
            return (Criteria) this;
        }

        public Criteria andClosePriceGreaterThan(Integer value) {
            addCriterion("closePrice >", value, "closePrice");
            return (Criteria) this;
        }

        public Criteria andClosePriceGreaterThanOrEqualTo(Integer value) {
            addCriterion("closePrice >=", value, "closePrice");
            return (Criteria) this;
        }

        public Criteria andClosePriceLessThan(Integer value) {
            addCriterion("closePrice <", value, "closePrice");
            return (Criteria) this;
        }

        public Criteria andClosePriceLessThanOrEqualTo(Integer value) {
            addCriterion("closePrice <=", value, "closePrice");
            return (Criteria) this;
        }

        public Criteria andClosePriceIn(List<Integer> values) {
            addCriterion("closePrice in", values, "closePrice");
            return (Criteria) this;
        }

        public Criteria andClosePriceNotIn(List<Integer> values) {
            addCriterion("closePrice not in", values, "closePrice");
            return (Criteria) this;
        }

        public Criteria andClosePriceBetween(Integer value1, Integer value2) {
            addCriterion("closePrice between", value1, value2, "closePrice");
            return (Criteria) this;
        }

        public Criteria andClosePriceNotBetween(Integer value1, Integer value2) {
            addCriterion("closePrice not between", value1, value2, "closePrice");
            return (Criteria) this;
        }

        public Criteria andStateIsNull() {
            addCriterion("state is null");
            return (Criteria) this;
        }

        public Criteria andStateIsNotNull() {
            addCriterion("state is not null");
            return (Criteria) this;
        }

        public Criteria andStateEqualTo(Integer value) {
            addCriterion("state =", value, "state");
            return (Criteria) this;
        }

        public Criteria andStateNotEqualTo(Integer value) {
            addCriterion("state <>", value, "state");
            return (Criteria) this;
        }

        public Criteria andStateGreaterThan(Integer value) {
            addCriterion("state >", value, "state");
            return (Criteria) this;
        }

        public Criteria andStateGreaterThanOrEqualTo(Integer value) {
            addCriterion("state >=", value, "state");
            return (Criteria) this;
        }

        public Criteria andStateLessThan(Integer value) {
            addCriterion("state <", value, "state");
            return (Criteria) this;
        }

        public Criteria andStateLessThanOrEqualTo(Integer value) {
            addCriterion("state <=", value, "state");
            return (Criteria) this;
        }

        public Criteria andStateIn(List<Integer> values) {
            addCriterion("state in", values, "state");
            return (Criteria) this;
        }

        public Criteria andStateNotIn(List<Integer> values) {
            addCriterion("state not in", values, "state");
            return (Criteria) this;
        }

        public Criteria andStateBetween(Integer value1, Integer value2) {
            addCriterion("state between", value1, value2, "state");
            return (Criteria) this;
        }

        public Criteria andStateNotBetween(Integer value1, Integer value2) {
            addCriterion("state not between", value1, value2, "state");
            return (Criteria) this;
        }

        public Criteria andHosregisterIdIsNull() {
            addCriterion("hosregisterId is null");
            return (Criteria) this;
        }

        public Criteria andHosregisterIdIsNotNull() {
            addCriterion("hosregisterId is not null");
            return (Criteria) this;
        }

        public Criteria andHosregisterIdEqualTo(Integer value) {
            addCriterion("hosregisterId =", value, "hosregisterId");
            return (Criteria) this;
        }

        public Criteria andHosregisterIdNotEqualTo(Integer value) {
            addCriterion("hosregisterId <>", value, "hosregisterId");
            return (Criteria) this;
        }

        public Criteria andHosregisterIdGreaterThan(Integer value) {
            addCriterion("hosregisterId >", value, "hosregisterId");
            return (Criteria) this;
        }

        public Criteria andHosregisterIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("hosregisterId >=", value, "hosregisterId");
            return (Criteria) this;
        }

        public Criteria andHosregisterIdLessThan(Integer value) {
            addCriterion("hosregisterId <", value, "hosregisterId");
            return (Criteria) this;
        }

        public Criteria andHosregisterIdLessThanOrEqualTo(Integer value) {
            addCriterion("hosregisterId <=", value, "hosregisterId");
            return (Criteria) this;
        }

        public Criteria andHosregisterIdIn(List<Integer> values) {
            addCriterion("hosregisterId in", values, "hosregisterId");
            return (Criteria) this;
        }

        public Criteria andHosregisterIdNotIn(List<Integer> values) {
            addCriterion("hosregisterId not in", values, "hosregisterId");
            return (Criteria) this;
        }

        public Criteria andHosregisterIdBetween(Integer value1, Integer value2) {
            addCriterion("hosregisterId between", value1, value2, "hosregisterId");
            return (Criteria) this;
        }

        public Criteria andHosregisterIdNotBetween(Integer value1, Integer value2) {
            addCriterion("hosregisterId not between", value1, value2, "hosregisterId");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}